package bank.mvc;

import framework.mvc.AFincoView;

import javax.swing.*;

public class BankView extends AFincoView {
    @Override
    public String getAppTitle() {
        return "Bank application";
    }

    @Override
    protected String getCreditReifiedName() {
        return "Deposit";  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    protected String getDebtReifiedName() {
        return "Withdraw";  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public String[] getTableHeaders() {
        String[] headers = new String[6];
        headers[0] = "AccountNr";
        headers[1] = "Name";
        headers[2] = "City";
        headers[3] = "P/C";
        headers[4] = "Ch/S";
        headers[5] = "Amount";
        return headers;
    }

    @Override
    protected void addButtons(Box box) {
        box.add(new AddCompanyButton(this).getButton());
        box.add(new AddPersonButton(this).getButton());
        box.add(new AddInterestButton(this).getButton());
        box.add(new ReportButton(this).getButton());
    }
}
